home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 176-200 / disk_188 / diffdir / diffdir.doc < prev    next >
Text File  |  1992-05-06  |  2KB  |  62 lines

  1.  
  2. Program:
  3.     DiffDir - List directory differences.
  4.  
  5.     (C)Copyright 1988 by Mark R. Rinfret
  6.     All Rights Reserved.
  7.     This software may be freely distributed for non-profit use only.
  8.     You are free to make changes and redistribute this program as
  9.     long as the source is distributed and this notice is kept intact.
  10.  
  11. Version:
  12.     1.0 -01/05/89- Initial release.
  13.  
  14. Author:
  15.     Mark R. Rinfret
  16.     348 Indian Ave.
  17.     Portsmouth, RI 02871
  18.     401-846-7639
  19.  
  20. Usage:
  21.     DiffDir [>listpath] [-c] [-s scriptfile] dirname1 dirname2
  22.         where
  23.             >listpath redirects standard output to a file or device
  24.             -c ignores filename letter case differences (abc = ABC)
  25.             -s generates a script file for batch file comparisons
  26.  
  27. Description:
  28.  
  29.     DiffDir compares the contents of two directories, outputting a
  30.     list of differences to standard output.  The following conditions
  31.     will generate diagnostic output:
  32.  
  33.         1. File or directory present in one hierarchy but not the other
  34.         2. File modification dates differ
  35.         3. File flags (protection, archive, script, etc.) differ
  36.         4. File comments differ
  37.         5. File sizes differ
  38.  
  39.     The -c option will allow DiffDir to ignore filename differences which
  40.     involve different letter case (abc vs. ABC).  The -s option will cause
  41.     a line of the form
  42.  
  43.         %COMPARE% path1 path2
  44.  
  45.     to be output to a special script file each time files with similar
  46.     names are found to have different sizes.  At this time, it is up to
  47.     the user to edit the script file, substituting the appropriate
  48.     command name for the %COMPARE% meta-string.  For instance, "diff -h"
  49.     might be substituted for text file comparisons, "cmp" for binary
  50.     files.  A smarter version of this program would more than likely
  51.     do the file content differentiation and apply the correct command
  52.     (defined by default, environment variable or command line parameter)
  53.     to the output string.  Any takers?
  54.  
  55.     I wrote DiffDir out of my own need after repeatedly going through the
  56.     drill of listing directories stored on my hard disk and floppy disk
  57.     archives of the same directory to determine which was more current.
  58.     Hopefully this program will save someone else the aggravation.
  59.  
  60.     Mark Rinfret
  61.  
  62.